package qlttn.model;

import java.io.Serializable;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;

public class Result implements Serializable{
	private int resultID;
	private ExamTaking examTaking;
	private Date beginTime;
	private Date endTime;
	private int timeLine;
	private int totalQuestion;
	private int totalCorrect;
	private int totalUncheck;
	private float totalScore;
	private Set examTakings = new HashSet(0);
	
	public Result(){}
	public Result(int resultID, ExamTaking examTaking, Date beginTime,
			Date endTime, int timeLine, int totalQuestion, int totalCorrect,
			int totalUncheck, float totalScore, Set examTakings) {
		this.resultID = resultID;
		this.examTaking = examTaking;
		this.beginTime = beginTime;
		this.endTime = endTime;
		this.timeLine = timeLine;
		this.totalQuestion = totalQuestion;
		this.totalCorrect = totalCorrect;
		this.totalUncheck = totalUncheck;
		this.totalScore = totalScore;
		this.examTakings = examTakings;
	}
	/**
	 * @return the resultID
	 */
	public int getResultID() {
		return resultID;
	}
	/**
	 * @param resultID the resultID to set
	 */
	public void setResultID(int resultID) {
		this.resultID = resultID;
	}
	/**
	 * @return the examTaking
	 */
	public ExamTaking getExamTaking() {
		return examTaking;
	}
	/**
	 * @param examTaking the examTaking to set
	 */
	public void setExamTaking(ExamTaking examTaking) {
		this.examTaking = examTaking;
	}
	/**
	 * @return the beginTime
	 */
	public Date getBeginTime() {
		return beginTime;
	}
	/**
	 * @param beginTime the beginTime to set
	 */
	public void setBeginTime(Date beginTime) {
		this.beginTime = beginTime;
	}
	/**
	 * @return the endTime
	 */
	public Date getEndTime() {
		return endTime;
	}
	/**
	 * @param endTime the endTime to set
	 */
	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}
	/**
	 * @return the timeLine
	 */
	public int getTimeLine() {
		return timeLine;
	}
	/**
	 * @param timeLine the timeLine to set
	 */
	public void setTimeLine(int timeLine) {
		this.timeLine = timeLine;
	}
	/**
	 * @return the totalQuestion
	 */
	public int getTotalQuestion() {
		return totalQuestion;
	}
	/**
	 * @param totalQuestion the totalQuestion to set
	 */
	public void setTotalQuestion(int totalQuestion) {
		this.totalQuestion = totalQuestion;
	}
	/**
	 * @return the totalCorrect
	 */
	public int getTotalCorrect() {
		return totalCorrect;
	}
	/**
	 * @param totalCorrect the totalCorrect to set
	 */
	public void setTotalCorrect(int totalCorrect) {
		this.totalCorrect = totalCorrect;
	}
	/**
	 * @return the totalUncheck
	 */
	public int getTotalUncheck() {
		return totalUncheck;
	}
	/**
	 * @param totalUncheck the totalUncheck to set
	 */
	public void setTotalUncheck(int totalUncheck) {
		this.totalUncheck = totalUncheck;
	}
	/**
	 * @return the totalScore
	 */
	public float getTotalScore() {
		return totalScore;
	}
	/**
	 * @param totalScore the totalScore to set
	 */
	public void setTotalScore(float totalScore) {
		this.totalScore = totalScore;
	}
	/**
	 * @return the examTakings
	 */
	public Set getExamTakings() {
		return examTakings;
	}
	/**
	 * @param examTakings the examTakings to set
	 */
	public void setExamTakings(Set examTakings) {
		this.examTakings = examTakings;
	}
	

}
